package com.cssy.xxkj.logic.dao;

import java.util.List;

import com.cssy.xxkj.logic.entity.LogicProductionDispatchingDetailDO;
import com.cssy.xxkj.logic.entity.vo.LogicProductionDispatchingDetailItemVO;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;

public interface LogicProdDispatchingDetailDAO extends LogicBizDAO<LogicProductionDispatchingDetailDO> {

	/**
     * 插入数据
     * @param logicProductionDispatchingDO
     * @return 插入数据的主键
     */
    public String insertLogicProductionDispatchingDetailDO(LogicProductionDispatchingDetailDO logicProductionDispatchingDetailDO);

    /**
     * 统计记录数
     * @param logicProductionDispatchingDO
     * @return 查出的记录数
     */
    public Integer countLogicProductionDispatchingDetailDOByExample(LogicProductionDispatchingDetailDO logicProductionDispatchingDetailDO);

    /**
     * 更新记录
     * @param logicProductionDispatchingDO
     * @return 受影响的行数
     */
    public Integer updateLogicProductionDispatchingDetailDO(LogicProductionDispatchingDetailDO logicProductionDispatchingDetailDO);

    /**
     * 获取对象列表
     * @param logicProductionDispatchingDO
     * @return 对象列表
     */
    public List<LogicProductionDispatchingDetailDO> findListByExample(LogicProductionDispatchingDetailDO logicProductionDispatchingDetailDO);

    /**
     * 根据主键获取logicProductionDispatchingDO
     * @param id
     * @return logicProductionDispatchingDO
     */
    public LogicProductionDispatchingDetailDO findLogicProductionDispatchingDetailDOByPrimaryKey(String id);

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicProductionDispatchingDetailDOByPrimaryKey(String id);
    
    /**
   	 * 关联查询 
   	 * @param scs
   	 * @return
   	 * @throws SyBaseException
   	 */
   	public List<LogicProductionDispatchingDetailItemVO> findDispatchingDetailBySCS(SearchConditions scs)throws SyBaseException;

   	/**
   	 * 关联查询 
   	 * @param scs
   	 * @return
   	 * @throws SyBaseException
   	 */
   	public Integer findDispatchingDetailCountBySCS(SearchConditions scs)throws SyBaseException;
   	
   	public List findDispatchingDetailToSum(SearchConditions scs)throws SyBaseException;
   	
   	public Integer countDispatchingDetailToSum(SearchConditions scs)throws SyBaseException;
   	
   	/**
   	 * 生产派工日报
   	 * @param scs
   	 * @return
   	 * @throws SyBaseException
   	 */
   	public List<LogicProductionDispatchingDetailItemVO> findCollectDispatchingDetailBySCS(SearchConditions scs)throws SyBaseException;

}
